
srcdir = .
LDFLAGS = -Wl,-lm
CFLAGS = -Wall -g 

# Change these if necessary

CC = gcc 
CPP = g++

all: SdManage

SdManage:VM_Create_Itrfc.o SD_Manage_Itrfc.o SD_Login_Itrfc.o interface.o Inter_Login_Itrfc.o
	$(CC) -o $@ $^ $(CFLAGS) `pkg-config --libs libglade-2.0 gtk+-2.0` -export-dynamic

SD_Login_Itrfc.o:SD_Login_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

SD_Manage_Itrfc.o:SD_Manage_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

VM_Create_Itrfc.o:VM_Create_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

Inter_Login_Itrfc.o:Inter_Login_Itrfc.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

interface.o:interface.c
	$(CC) -c $< -o $@ $(CFLAGS) `pkg-config --cflags libglade-2.0 gtk+-2.0`

clean:
	rm -f *.o core *.gdb
	


